package com.hqq.behaviour.template_method;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * HitAndRunMethod
 * Created by heqianqian on 2017/6/19.
 */
public class HitAndRunMethod extends StealingMethod {

    private static final Logger LOGGER = LoggerFactory.getLogger(HitAndRunMethod.class);

    @Override
    public String pickTarget() {
        return "old goblin woman";
    }

    @Override
    public void confuseTarget(String target) {
        LOGGER.info("Approach the {} from behind.", target);
    }

    @Override
    public void stealTheItem(String target) {
        LOGGER.info("Grab the handbag and run away fast!");
    }
}
